<template>
  <div class="p-2">
    <addOrEditOperator
    v-if="operatorId"
      :operatorId="operatorId"></addOrEditOperator>
  </div>
</template>

<script setup name="operatorEdit" lang="ts">
import addOrEditOperator from '../components/addOrEditOperator.vue';
const route = useRoute();
const operatorId = ref<any>('');
onMounted(() => {
  if (route.query.id) {
    operatorId.value = route.query.id;
  }
});
</script>

<style lang="scss" scoped>
</style>
